#ifndef _SIMPLE_VEGETABLE_H_
#define _SIMPLE_VEGETABLE_H_
#include "plants.h"


class CsimpleVegetableFactory
{
public:
	static CVegetable* CreatePlants(VEGETABLETYPE vegetableType)
	{
		CVegetable *pVegetables = nullptr;
		switch (vegetableType)
		{
		case carrot:
			pVegetables = new CCarrot();
			break;
		case cabbage:
			pVegetables = new CCabbage();
			break;
		default:
			break;
		}
		return pVegetables;
	}
};
#endif // !_SIMPLE_VEGETABLE_H_
